﻿using DelonixRegia__Staff_Use_.Classes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Delonix_Regia_Hotel
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if (StaffLogin.Login(TextBox1.Text, TextBox2.Text))
            {
                Response.Redirect("Particulars.aspx?name=" + TextBox1.Text);
            }
            else
            {
                Label1.Text = "Username or Password is incorrect! Please try again.";
            }


        }
    }
}
